using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace ProjectManageSystemApi.DbEntity {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "project_item_price_record", DisableSyncStructure = true)]
	public partial class ProjectItemPriceRecord {

		[JsonProperty, Column(Name = "id", DbType = "int", IsPrimary = true, IsIdentity = true)]
		public int Id { get; set; }

		/// <summary>
		/// 工程项目id
		/// </summary>
		[JsonProperty, Column(Name = "item_id", DbType = "int")]
		public int ItemId { get; set; }

		/// <summary>
		/// 修改前的预算金额
		/// </summary>
		[JsonProperty, Column(Name = "old_fact_amount", DbType = "decimal(8,2)")]
		public decimal OldFactAmount { get; set; }

		/// <summary>
		/// 修改前的预算用量
		/// </summary>
		[JsonProperty, Column(Name = "old_fact_dosage", DbType = "double(8,2)")]
		public double OldFactDosage { get; set; }

		/// <summary>
		/// 修改后的预算金额
		/// </summary>
		[JsonProperty, Column(Name = "new_fact_amount", DbType = "decimal(8,2)")]
		public decimal NewFactAmount { get; set; }

		/// <summary>
		/// 修改后的预算用量
		/// </summary>
		[JsonProperty, Column(Name = "new_fact_dosage", DbType = "double(8,2)")]
		public double NewFactDosage { get; set; }

		/// <summary>
		/// 修改时间
		/// </summary>
		[JsonProperty, Column(Name = "create_time", DbType = "bigint")]
		public long CreateTime { get; set; }

		/// <summary>
		/// 修改人
		/// </summary>
		[JsonProperty, Column(Name = "create_user", DbType = "bigint")]
		public long CreateUser { get; set; }

		[Navigate(nameof(CreateUser))]
		public UserInfo UserInfo { get; set; }
	}

}
